package corp.edu.amadeus.web.action.example;

import java.util.Map;
import java.util.HashMap;
import com.opensymphony.xwork2.ActionSupport;

public class JSONAction extends ActionSupport  {

	private Map<String, String> cities;
	private Map<String, String> countries;

	public JSONAction() {
		this.cities = new HashMap<String, String>();
		this.countries = new HashMap<String, String>();
	}

	public Map<String, String> getCities() {
		return this.cities;
	}

    public String execute() throws Exception {
        this.cities.put("alabama", "AL");
        this.cities.put("texas", "TX");
        this.countries.put("ES", "Spain");
        this.countries.put("US", "USA");
        return SUCCESS;
    }

}